package com.huanletao.spring.data.dao;

import com.huanletao.spring.data.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * description: ResumeDao <br>
 * date: 2022/7/7 11:14 <br>
 * author: 踏雪无痕 <br>
 * version: 1.0 <br>
 */
public interface ResumeRepository extends JpaRepository<Resume, Integer>, JpaSpecificationExecutor<Resume> {

    List<Resume> findAllByNameContaining(String name);

    List<Resume> findAllByNameContainingAndAge(String name, Integer age);
}
